package dom;

public class Bird extends Animal implements IFly,IRun{
    public Bird(){
        super("小鸟");
    }

    @Override
    public void eat() {
        System.out.println(this.name+"正在吃鸟粮");
    }

    @Override
    public void fly() {
        System.out.println(this.name+"正在用两个翅膀飞...");
    }

    @Override
    public void run() {
        System.out.println(name+"正在用两条腿跑...");
    }
}
